import request from "@/utils/request"

export function list(obj) {
  return request({
    url: "/interfaceDataCollectJobConfig/list",
    method: "get",
    params: obj
  })
}

export function add(obj) {
  return request({
    url: "/interfaceDataCollectJobConfig/add",
    method: "post",
    data: obj
  })
}

export function update(obj) {
  return request({
    url: "/interfaceDataCollectJobConfig/update",
    method: "post",
    data: obj
  })
}

export function startAtOnce(obj) {
  return request({
    url: "/interfaceDataCollectJobConfig/startAtOnce",
    method: "get",
    params: obj
  })
}

export function config(obj) {
  return request({
    url: "/interfaceDataCollectJobConfig/config",
    method: "post",
    data: obj
  })
}

export function transientConfig(obj) {
  return request({
    url: "/interfaceDataCollectJobConfig/transient/config",
    method: "post",
    data: obj
  })
}

export function del(obj) {
  return request({
    url: "/interfaceDataCollectJobConfig/delete",
    method: "post",
    data: obj
  })
}

// export function jobDeal(obj) {
//   return request({
//     url: "/interfaceDataCollectJobConfig/jobDeal",
//     method: "get",
//     params: obj
//   })
// }

export function query(obj) {
  return request({
    url: "/interfaceDataCollectJobConfig/" + obj.id,
    method: "get"
  })
}


export function call(obj) {
  return request({
    url: "/jobInterfaceDatasource/interface/call/" + obj.id,
    method: "get"
    // params: obj
  })
}


